<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="boot.css">
    <title>启动</title>
</head>
<body>
    <div id="app">
        <template v-if="mode == 'loading'">
            <div class="icon icon-logo"></div>
            <div class="text left" v-for="l in logs">[{{l.time | formatDateTime}}] {{l.text}}</div>
            <div class="actions">
                <!--<a href="javascript:;" @click="gotoFactory">重填设备编码</a>-->
                <!--<a href="javascript:;" @click="testVideo">播放视频</a>-->
            </div>
        </template>

        <template v-if="mode == 'error'">
            <div class="icon icon-error"></div>
            <div class="text">{{errorText}}</div>
            <div class="actions">
                <a href="javascript:;">重 试</a>
            </div>
        </template>

        <template v-if="mode == 'factory'">
            <div class="icon icon-logo"></div>
            <div class="text">请填写设备编码</div>
            <div>
                <input type="text" v-model="machineSn" placeholder="设备编码">
            </div>
            <div class="actions">
                <a href="javascript:;" @click="saveMachineSn">确 定</a>
            </div>
        </template>
    </div>
    <div id="active-wrap" class="hide">
        <div id="active-qr" class="qr"></div>
        <div class="text" id="J-machine-sn">

        </div>
        <div class="text">
            请使用微信扫描二维码激活机器
        </div>

    </div>
    <script src="../jquery.min.js"></script>
    <script src="../vue.min.js"></script>
    <script src="../jssdk.js"></script>
    <script src="../jquery-qrcode-0.14.0.min.js"></script>
    <script src="boot.js"></script>
    
</body>
</html>